#ifndef C_ALGORITHM_HUFFMAN_TREE_H
#define C_ALGORITHM_HUFFMAN_TREE_H

// 不完整类型定义, 隐藏hf_node_t 结构
typedef struct hf_node_t *hf_tree;

hf_tree huffman_create(const double *array_weight, int n);

void huf_code(hf_tree tree, char *encoding[], int n);

void huffman_destory(hf_tree tree);

#endif